package com.ideal.view.component;

import com.ideal.view.form.TableConfigForm;
import com.intellij.openapi.components.ApplicationComponent;
import com.intellij.openapi.project.Project;

import javax.swing.*;

/**
 * Table生成组件
 * @author
 */
public class TableComponent implements ApplicationComponent{

    public void showTable (String path){
        TableConfigForm tableConfig = new TableConfigForm(path);
        JFrame frame = new JFrame("代码生成");
        frame.setIconImage(null);
        frame.setContentPane(tableConfig.getRootPanel());
        frame.setBounds(500,200,600,400);
        frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        frame.pack();
        frame.setVisible(true);
    }

}
